package com.ha.system.status.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ha.system.status.mapper.HaEmployeeStatusMapper;
import com.ha.system.status.domain.HaEmployeeStatus;
import com.ha.system.status.service.IHaEmployeeStatusService;
import com.ha.common.core.text.Convert;

/**
 * 员工状态Service业务层处理
 * 
 * @author admin
 * @date 2021-03-17
 */
@Service
public class HaEmployeeStatusServiceImpl implements IHaEmployeeStatusService 
{
    @Autowired
    private HaEmployeeStatusMapper haEmployeeStatusMapper;

    /**
     * 查询员工状态
     * 
     * @param id 员工状态ID
     * @return 员工状态
     */
    @Override
    public HaEmployeeStatus selectHaEmployeeStatusById(Long id)
    {
        return haEmployeeStatusMapper.selectHaEmployeeStatusById(id);
    }

    /**
     * 查询员工状态列表
     * 
     * @param haEmployeeStatus 员工状态
     * @return 员工状态
     */
    @Override
    public List<HaEmployeeStatus> selectHaEmployeeStatusList(HaEmployeeStatus haEmployeeStatus)
    {
        return haEmployeeStatusMapper.selectHaEmployeeStatusList(haEmployeeStatus);
    }

    /**
     * 新增员工状态
     * 
     * @param haEmployeeStatus 员工状态
     * @return 结果
     */
    @Override
    public int insertHaEmployeeStatus(HaEmployeeStatus haEmployeeStatus)
    {
        return haEmployeeStatusMapper.insertHaEmployeeStatus(haEmployeeStatus);
    }

    /**
     * 修改员工状态
     * 
     * @param haEmployeeStatus 员工状态
     * @return 结果
     */
    @Override
    public int updateHaEmployeeStatus(HaEmployeeStatus haEmployeeStatus)
    {
        return haEmployeeStatusMapper.updateHaEmployeeStatus(haEmployeeStatus);
    }

    /**
     * 删除员工状态对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteHaEmployeeStatusByIds(String ids)
    {
        return haEmployeeStatusMapper.deleteHaEmployeeStatusByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工状态信息
     * 
     * @param id 员工状态ID
     * @return 结果
     */
    @Override
    public int deleteHaEmployeeStatusById(Long id)
    {
        return haEmployeeStatusMapper.deleteHaEmployeeStatusById(id);
    }
}
